﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Host.Models
{
    public class ClaimImportModel
    {
        #region Properties

        private string _groupType;
        [Display(Name = "GroupType")]
        public string GroupType
        {
            get { return _groupType; }
            set
            {
                #region Validate record

                if (value.Trim() == "")
                {
                    ExceptionHelper.CreateException(0, "Group Type has not value", 1);
                }
                else
                {
                    _groupType = "DUAL";
                }

                #endregion
                _groupType = value.Trim();
            }
        }

        [Display(Name = "FundCode")]
        public string FundCode { get; set; }

        [Display(Name = "Surname")]
        public string Surname { get; set; }

        [Display(Name = "Initials")]
        public string Initials { get; set; }

        [Display(Name = "Title")]
        public string Title { get; set; }

        [Display(Name = "ClaimNo")]
        public string ClaimNo { get; set; }

        [Display(Name = "ClaimDate")]
        public string ClaimDate { get; set; }

        [Display(Name = "TargetUser")]
        public string TargetUser { get; set; }

        [Display(Name = "AddressLine1")]
        public string AddressLine1 { get; set; }

        [Display(Name = "AddressLine2")]
        public string AddressLine2 { get; set; }

        [Display(Name = "AddressLine3")]
        public string AddressLine3 { get; set; }

        [Display(Name = "PostalCode")]
        public string PostalCode { get; set; }

        [Display(Name = "FirstNames")]
        public string FirstNames { get; set; }

        [Display(Name = "TaxRefNo")]
        public string TaxRefNo { get; set; }

        [Display(Name = "IdentityNo")]
        public string IdentityNo { get; set; }

        [Display(Name = "BankName")]
        public string BankName { get; set; }

        [Display(Name = "BankAccountNo")]
        public string BankAccountNo { get; set; }

        [Display(Name = "BranchCode")]
        public string BranchCode { get; set; }

        [Display(Name = "AccountType")]
        public string AccountType { get; set; }

        [Display(Name = "EmployeeCode")]
        public string EmployeeCode { get; set; }

        [Display(Name = "HomeLoan")]
        public string HomeLoan { get; set; }

        [Display(Name = "WithdrawalReinvestFlag")]
        public string WithdrawalReinvestFlag { get; set; }

        [Display(Name = "ClaimAmount")]
        public string ClaimAmount { get; set; }
        #endregion
    }
}